<?php
/*
  Template Name: Blog
*/
?>

<?php get_header(); ?>    

    <div class="left_content">

<?php
      $args = array(
                   'category_name' => 'blog',
                   'post_type' => 'post',
                   'posts_per_page' => 10,
                   'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
                   );

      query_posts($args);
      while (have_posts()) : the_post(); ?>
        
      <div class="blog_post">
        <div class="blog_image"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('featured-blog'); ?></a></div>
        
        <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
        
       <?php $temp_arr_content = explode(" ",substr(strip_tags(get_the_content()),0,350)); $temp_arr_content[count($temp_arr_content)-1] = ""; $display_arr_content = implode(" ",$temp_arr_content); echo $display_arr_content; ?><?php if(strlen(strip_tags(get_the_content())) > 350) echo "..."; ?></p>
      </div><!--//blog_post-->
        
        
      <?php endwhile; ?>
        <div class="clear"></div>
        <div class="left"><?php previous_posts_link('&laquo; Previous') ?></div>
        <div class="right"><?php next_posts_link('More &raquo;') ?></div>
      <?php wp_reset_query(); ?>

    </div><!--//left_content-->
    
<?php get_sidebar(); ?>

<?php get_footer(); ?>